package com.atguigu.mybatis.mapper;

import com.atguigu.mybatis.bean.Employee;

import java.util.List;

/**
 * Created by Smexy on 2022/10/10
 */
public interface EmployeeMapper
{

    //crud
    Employee getEmployeeById(Integer id);

    //写操作无需返回值
    void insertEmployee(Employee employee);

    void updateEmployee(Employee employee);

    void deleteEmployeeById(Integer id);

    //查询所有
    List<Employee> getAll();
}
